﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
namespace Jemer.Domain.Entities
{
    //产品表
    public class Product
    {

        /// <summary>
        /// 产品标识
        /// </summary>
        [Key]
        [Required]
        [MaxLength(4)]
        public int ProductID { get; set; }

        /// <summary>
        /// 产品分类编号
        /// </summary>

        [Required]
        [MaxLength(4)]
        public int PTypeID { get; set; }

        /// <summary>
        /// 产品名称
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string PName { get; set; }

        /// <summary>
        /// 产品副标题
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string PTitle { get; set; }

        /// <summary>
        /// 产品型号
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string PModel { get; set; }

        /// <summary>
        /// 产品唯一编号
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string PCode { get; set; }

        /// <summary>
        /// 功效
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string Efficacy { get; set; }

        /// <summary>
        /// 适宜人群
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string SuitablePeople { get; set; }

        /// <summary>
        /// 市场价格
        /// </summary>

        [Required]
        [MaxLength(8)]
        public decimal MarketPrice { get; set; }

        /// <summary>
        /// 商城价格
        /// </summary>

        [Required]
        [MaxLength(8)]
        public decimal ShopPrices { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>


        [MaxLength(9)]
        public decimal Discount { get; set; }

        /// <summary>
        /// 赠送积分
        /// </summary>

        [Required]
        [MaxLength(4)]
        public int Points { get; set; }

        /// <summary>
        /// 产品介绍
        /// </summary>

        [Required]

        public string Introduction { get; set; }

        /// <summary>
        /// 赠品
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string Gift { get; set; }

        /// <summary>
        /// 添加日期
        /// </summary>

        [Required]
        [MaxLength(8)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 是否已上架
        /// </summary>

        [Required]
        [MaxLength(1)]
        public bool IsPublish { get; set; }

        /// <summary>
        /// 是否已删除
        /// </summary>

        [Required]
        [MaxLength(1)]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// 备注
        /// </summary>


        [MaxLength(200)]
        public string Remark { get; set; }


    }
}

